package com.share.rest;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @desc:
 * @author:caifan
 * @date:2020/5/10
 */
@RestController
@RequestMapping("/rest")
@Api("test")
public class Knife4jRest {

    @ApiOperation(value = "hello")
    @GetMapping(value = "/knife")
    public String hello(@RequestParam("username")String username) {
        return "hello:" + username;
    }
}
